<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            margin: 0 auto;
        }

        .username,
        .password {
            display: flex;
        }

        input {
            /* border: none; */
            width: 90%;
            height: 40px;
            /* margin: 50px auto; */
            padding-left: 20px;
            margin-top: 50px;
        }

        .login {
            display: flex;
        }

        button {
            width: 90%;
            height: 40px;
            border-radius: 20px;
            margin: 0 auto;
            border: none;
            margin-top: 50px;
        }

        .lo {
            display: flex;
            width: 100%;
            margin: 0 auto;
            height: 40px;
            align-items: center;
            justify-content: space-between;
        }

        .lo span {
            color: blue;
            width: 30%;
            height: 40px;
            text-align: center;
            margin-top: 30px;
        }

        .bottom input {
            width: 20px;
            height: 20px;
        }

        .bottom span {
            line-height: 40px;
        }

        i {
            color: blue;
            text-decoration: none;
        }
    </style>
</head>

<body>
    <div id="root">
        <h2 style="margin-top: 120px;">密码登录</h2>
        <div class="username">
            <input type="text" placeholder="手机/用户名" v-model="username">
        </div>
        <div class="password">
            <input type="password" placeholder="密码" v-model="password">
        </div>
        <div class="login">
            <button @click="login">登录</button>
        </div>
        <div class="lo">
            <span>手机号登录</span>
            <span>忘记密码</span>
        </div>
        <div class="bottom">
            <input type="checkbox"><span>已阅读并同意，<i>《用户服务协议》</i><i>《隐私政策》</i></span>
        </div>
    </div>
</body>

</html>

<script src="./vue-2.5.21.js"></script>
<script>
    const vm = new Vue({
        el: '#root',
        data() {
            return {
                username: '',
                password: ''
            }
        },
        methods: {
            login() {
                console.log('账号', this.username, '密码', this.password);
            }
        },
    })
</script>